import request from '/@/utils/request';

// 查询小区的智能机器人终端列表
export function listRobot(query?: Object) {
  return request({
    url: '/module/devices/robot/list',
    method: 'get',
    params: query
  })
}

// 查询小区的智能机器人终端详细
export function getRobot(id?: number) {
  return request({
    url: '/module/devices/robot/' + id,
    method: 'get'
  })
}

// 新增小区的智能机器人终端
export function addRobot(data?: Object) {
  return request({
    url: '/module/devices/robot',
    method: 'post',
    data: data
  })
}

// 修改小区的智能机器人终端
export function updateRobot(data?: Object) {
  return request({
    url: '/module/devices/robot',
    method: 'put',
    data: data
  })
}

// 删除小区的智能机器人终端
export function delRobot(id?: number) {
  return request({
    url: '/module/devices/robot/' + id,
    method: 'delete'
  })
}

// 导出小区的智能机器人终端
export function exportRobot(query?: Object) {
  return request({
    url: '/module/devices/robot/export',
    method: 'get',
    params: query
  })
}
